Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make __all__ a list of strings #144

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

ShadowJonathan
Copy link
Contributor

This fixes mypy from producing this error:

$ stubgen -m txredisapi
Traceback (most recent call last):
  File ".../.venv/bin/stubgen", line 8, in <module>
    sys.exit(main())
  File "mypy/stubgen.py", line 1564, in main
  File "mypy/stubgen.py", line 1442, in generate_stubs
  File "mypy/stubgen.py", line 1385, in generate_stub_from_ast
  File "mypy/stubgen.py", line 515, in __init__
TypeError: str object expected; got function

This fixes mypy from producing this error:

```
$ stubgen -m txredisapi
Traceback (most recent call last):
  File ".../.venv/bin/stubgen", line 8, in <module>
    sys.exit(main())
  File "mypy/stubgen.py", line 1564, in main
  File "mypy/stubgen.py", line 1442, in generate_stubs
  File "mypy/stubgen.py", line 1385, in generate_stub_from_ast
  File "mypy/stubgen.py", line 515, in __init__
TypeError: str object expected; got function
```
@IlyaSkriblovsky IlyaSkriblovsky merged commit c89a498 into IlyaSkriblovsky:master Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants